<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Model;

/**
 * @property int $id 
 * @property string $message 发送消息
 * @property int $send_user_id 发送user_id
 * @property int $group_id 群id
 * @property int $type 消息类型 0普通消息 1图片 2音频 3视频
 * @property string $create_time 创建时间
 */
class GroupMessage extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'group_message';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'message', 'send_user_id', 'group_id', 'type', 'create_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'send_user_id' => 'integer', 'group_id' => 'integer', 'type' => 'integer'];
}
